On the Subject of the Magenta Cipher
The color magenta doesn’t exist, it is your brain trying to make sense of your red and blue cones activating while the green is inactive. This cipher is merely a pigment of your imagination.
On the module, you will see 3 screens, a keyboard, 2 arrows, and a submit button that displays the current page you’re on.
Pressing any of the arrows will only clear any letters that you have pressed since there is only 1 page for this cipher.
The top screen shows a 6 letter encrypted word, the middle screen displays a number, and the bottom screen shows a 3 letter key.
Follow the mechanics down below to decrypt your word:
Step 1: Affine Cipher
The encrypted word can be decrypted using this formula: ((C - X) * D) % 26
X is calculated by taking the sum of the serial number digits, modulo 25, plus 1. D is the multiplicative inverse of the number displayed on the middle screen (This is called E). D can be found by satisfying this equation: (E * D) % 26 = 1
For each letter, turn it into a number using their alphabetic positions, plug it into the variable C in the equation, and turn the resulting value back into a letter. Note: Z can be both 0 and 26.
You should now have a new encrypted word.
Example
Encrypted Word: WVQMOG
Middle Screen: 9 -> (9 * 3) % 26 = 1
X: ((7 + 3) % 25) + 1 = 11
W -> ((23 - 11) * 3) % 26 -> 10 -> J
V -> ((22 - 11) * 3) % 26 -> 7 -> G
Q -> ((17 - 11) * 3) % 26 -> 18 -> R
M -> ((13 - 11) * 3) % 26 -> 6 -> F
O -> ((15 - 11) * 3) % 26 -> 12 -> L
G -> ((07 - 11) * 3) % 26 -> 14 -> N
New Encrypted Word: JGRFLN